package com.dunjx.user.pojo;

import entity.PageInfos;
import io.swagger.annotations.*;
import lombok.*;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:admin
 * @Description:TUser构建
 * @Date 2019/6/14 19:13
 *****/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "TUser",value = "TUser")
@Table(name="t_user")
public class User extends PageInfos implements Serializable {

	@ApiModelProperty(value = "用户表id",required = false)
	@Id
	@Column(name = "id")
	private String id;//用户表id

	@ApiModelProperty(value = "用户编号",required = false)
	@Column(name = "uid")
	private String uid;//用户编号

	@ApiModelProperty(value = "用户名",required = false)
	@Column(name = "username")
	private String username;//用户名

	@ApiModelProperty(value = "用户密码 （密文）",required = false)
	@Column(name = "password")
	private String password;//用户密码 （密文）

	@ApiModelProperty(value = "真实姓名",required = false)
	@Column(name = "realname")
	private String realname;//真实姓名

	@ApiModelProperty(value = "性别 1 男 2 女  3 保密",required = false)
	@Column(name = "sex")
	private String sex;//性别 1 男 2 女  3 保密

	@ApiModelProperty(value = "头像地址",required = false)
	@Column(name = "head_url")
	private String headUrl;//头像地址

	@ApiModelProperty(value = "昵称",required = false)
	@Column(name = "nike_name")
	private String nikeName;//昵称

	@ApiModelProperty(value = "邮箱",required = false)
	@Column(name = "email")
	private String email;//邮箱

	@ApiModelProperty(value = "绑定手机号",required = false)
	@Column(name = "phone")
	private String phone;//绑定手机号

	@ApiModelProperty(value = "状态 1 禁用 2 注销 0正常",required = false)
	@Column(name = "status")
	private String status;//状态 1 禁用 2 注销 0正常

	@ApiModelProperty(value = "地址 省,市,区  逗号分割 见地区表",required = false)
	@Column(name = "address")
	private String address;//地址 省,市,区  逗号分割 见地区表

	@ApiModelProperty(value = "注册时间",required = false)
	@Column(name = "register_time")
	private Date registerTime;//注册时间

	@ApiModelProperty(value = "QQ账号",required = false)
	@Column(name = "qq_number")
	private String qqNumber;//QQ账号

	@ApiModelProperty(value = "生日",required = false)
	@Column(name = "birthday")
	private Date birthday;//生日

	@ApiModelProperty(value = "电话是否认证 0 认证 1 未认证",required = false)
	@Column(name = "is_mobile_check")
	private String isMobileCheck;//电话是否认证 0 认证 1 未认证

	@ApiModelProperty(value = "邮箱是否认证 0 认证 1 未认证",required = false)
	@Column(name = "is_email_check")
	private String isEmailCheck;//邮箱是否认证 0 认证 1 未认证

	@ApiModelProperty(value = "微信账号",required = false)
	@Column(name = "wechat_number")
	private String wechatNumber;//微信账号

	@ApiModelProperty(value = "备注",required = false)
	@Column(name = "remark")
	private String remark;//备注

	@ApiModelProperty(value = "附加信息01",required = false)
	@Column(name = "attach_one")
	private String attachOne;//附加信息01

	@ApiModelProperty(value = "附加信息02",required = false)
	@Column(name = "attach_two")
	private String attachTwo;//附加信息02

	@ApiModelProperty(value = "附加信息03",required = false)
	@Column(name = "attach_three")
	private String attachThree;//附加信息03

	@ApiModelProperty(value = "最后登录时间",required = false)
	@Column(name = "last_login_time")
	private Date lastLoginTime;//最后登录时间


	@ApiModelProperty(value = "新密码",required = false)
	@Transient
	private String newPassword;

	@ApiModelProperty(value = "城市",required = false)
	@Transient
	private int city[];


}
